package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.LitemallWantBuyMapper;
import org.linlinjava.litemall.db.domain.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LitemallWantbuyService {

    LitemallGoods.Column[] columns = new LitemallGoods.Column[]{LitemallGoods.Column.id, LitemallGoods.Column.name, LitemallGoods.Column.brief, LitemallGoods.Column.picUrl, LitemallGoods.Column.isHot, LitemallGoods.Column.isNew, LitemallGoods.Column.counterPrice, LitemallGoods.Column.retailPrice};
    @Resource
    private LitemallWantBuyMapper wantBuyMapper;

    public LitemallWantBuy findById(Integer Id) {
        return wantBuyMapper.selectByPrimaryKey(Id);
    }

    public List<LitemallWantBuy> selectByExample(LitemallWantBuyExample example){
        return wantBuyMapper.selectByExample(example);
    }

    public void insertSelective(LitemallWantBuy wantbuyExample) {
        wantBuyMapper.insertSelective(wantbuyExample);
    }

    public void updateByPrimaryKeySelective(LitemallWantBuy wantBuyExample) {
        wantBuyMapper.updateByPrimaryKeySelective(wantBuyExample);
    }

    public LitemallWantBuy selectByPrimaryKey(Integer id) {
        return wantBuyMapper.selectByPrimaryKey(id);
    }


}
